BeanName_TError : user definitiontypedef union { /* Status flags. */
byte status;
struct {
bool OpticalDiagnosis :1; /* Internal error bit of optical transceiver */
bool XSync :1; /* Valid Sync pulse has been received */
bool :1;
bool SlotMismatch :1; /* Slot mismatch */
bool NormalSync :1; /* Normal sync pulse has been received */
bool AlarmSync :1; /* Alarm sync pulse has been received */
bool Wakeup :1; /* Wakeup condition */
bool RcvFIFO :1; /* FIFO not empty */
}statusName;
}BeanName_TStatus;
Error flags.
BeanName_TStatus : user definitiontypedef union { /* Error flags. */
byte err;
struct {
bool :1;
bool LockingError :1; /* Two receive or transmit buffers are locked at the same time */
bool IllegalPulse :1; /* Illegal pulse error */
bool LostSync :1; /* Sync pulse lost error */
bool TooEarlySync :1; /* Sync pulse too early error */
bool FrameError :1; /* Message format (Frame, CRC) error */
bool Overrun :1; /* Receive FIFO overrun */
bool :1;
}errName;
} BeanName_TError;
Status flags.